
<#if pager.pageCount gt 0 >
<div id="pager">
	<ul id = "pagerIndex">
		<#if pager.pageNo != 1>
			<li>
				<a href="<@s.url action="${action}"  namespace="${namespace}"><#if param??><#assign keys = param?keys/><#list keys as key><@s.param name="${key}">${param[key]}</@s.param></#list></#if><@s.param name="pageNo">1</@s.param></@s.url>"> Index</a>
			</li>
		<#else>
			<li>
				Index
			</li>
		</#if>	
		<#if pager.startPageIndex != 1>
			<li>
				<a href="<@s.url action="${action}"  namespace="${namespace}"><#if param??><#assign keys = param?keys/><#list keys as key><@s.param name="${key}">${param[key]}</@s.param></#list></#if><@s.param name="pageNo">${pager.startPageIndex -1}</@s.param></@s.url>"> << </a>
			</li>
		</#if>
		<#list pager.startPageIndex..pager.endPageIndex as index>
			<li>
				<#if pager.pageNo != index>
                    <a href="<@s.url action="${action}"  namespace="${namespace}"><#if param??><#assign keys = param?keys/><#list keys as key><@s.param name="${key}">${param[key]}</@s.param></#list></#if><@s.param name="pageNo">${index}</@s.param></@s.url>">${index}</a>
                <#else>
                     ${index}
                </#if>
            </li>
		</#list>
		<#if pager.endPageIndex != pager.pageCount>
			<li>
				 <a href="<@s.url action="${action}"  namespace="${namespace}"><#if param??><#assign keys = param?keys/><#list keys as key><@s.param name="${key}">${param[key]}</@s.param></#list></#if><@s.param name="pageNo">${pager.endPageIndex +1 }</@s.param></@s.url>"> >> </a>
			</li>	
		</#if>	
		<#if pager.pageNo != pager.pageCount>
			<li>
				<a href="<@s.url action="${action}"  namespace="${namespace}"><#if param??><#assign keys = param?keys/><#list keys as key><@s.param name="${key}">${param[key]}</@s.param></#list></#if><@s.param name="pageNo">${pager.pageCount}</@s.param></@s.url>"> Last </a>
			</li>
		<#else>
			<li>
				Last
			</li>
		</#if>
	</ul>
</div>
</#if>